<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>10钟表</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        /* 设置整体的时钟 */
        .clock{
            width: 500px;
            height: 500px;
            margin: 200px auto;
            /* background-color: aqua; */
            background-image: url(./resource/clock-bg.jpg);
            /* background-position: center; */
            background-size: contain;
            position: relative;
        }
        .clock>div{
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            margin: auto;
        }
        /* 设置时针 */
        .hour-wrapper{
            width: 70%;
            height: 70%;
            /* background-color: aquamarine; */
            animation: run 43200s infinite;
            animation-timing-function: linear;
        }
        .hour{
            height: 50%;
            width: 8px;
            background-color: blue;
            margin: 0 auto;
        }
        @keyframes run{
            from{
                transform: rotateZ(0deg);
            }
            to{
                transform: rotateZ(360deg);
            }
        }
        /* 设置分针 */
        .min-wrapper{
            width: 80%;
            height: 80%;
            /* background-color: azure; */
            animation: run 3600s infinite;
            animation-timing-function: linear;
        }
        .min{
            height: 50%;
            width: 4px;
            background-color: green;
            margin: 0 auto;
        }
        /* 设置秒针 */
        .sec-wrapper{
            width: 90%;
            height: 90%;
            /* background-color: azure; */
            animation: run 60s infinite;
            animation-timing-function: linear;
        }
        .sec{
            height: 50%;
            width: 4px;
            background-color: red;
            margin: 0 auto;
        }
        
    </style>
</head>
<body>
    <!-- 创建钟表容器 -->
    <div class="clock">
        <!-- 创建时针 -->
        <div class="hour-wrapper">
            <div class="hour"></div>
        </div>
        <!-- 创建分针 -->
        <div class="min-wrapper">
            <div class="min"></div>
        </div>
        <!-- 创建秒针 -->
        <div class="sec-wrapper">
            <div class="sec"></div>
        </div>
    </div>
</body>
</html>